package com.jamin.aabill.data;

import org.json.JSONObject;

import com.jamin.aabill.api.BillApi;
import com.jamin.aabill.api.BillException;
import com.jamin.aabill.api.BillResponse;
import com.jamin.aabill.http.Response;

public class LoginResult extends BillResponse{



	public LoginResult(Response res )throws BillException{
		super(res, BillApi.TYPE_JSONOBJECT);
		userInfo = new UserInfo((JSONObject) requestBizObject);
		
	}

	private String Session;
	private UserInfo userInfo;

	public String getSession() {
		return Session;
	}

	public void setSession(String session) {
		Session = session;
	}


	public UserInfo getUserInfo() {
		return userInfo;
	}

	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}

	@Override
	public String toString() {
		String bizObjStr =  "LoginResult = {" + 
				"Session = '" + Session + "\'" +	
				" , userInfo = '" + userInfo + "\'" + "}";
		return (requestStatus.toString() + "---" + requestPageInfo.toString() + "---" + bizObjStr);
	}

}
